import { createSlice } from '@reduxjs/toolkit'

interface IState {
  loginModelVisiable: boolean
}

const initialState: IState = {
  loginModelVisiable: false
}

const optionsSlice = createSlice({
  name: 'options',
  initialState,
  reducers: {
    setLoginModelVisiable: (state, action) => {
      state.loginModelVisiable = action.payload
    }
  }
})

export const { setLoginModelVisiable } = optionsSlice.actions

export default optionsSlice.reducer
